import tensorflow as tf

tf.compat.v1.enable_eager_execution()
# tf.compat.v1.disable_eager_execution()

a = tf.constant([[3, 5], [4, 8]])
b = tf.constant([[1, 6], [2, 9]])
# This op does not broadcast its inputs. If you need broadcasting, use tf.math.add (or the + operator) instead.
res = tf.math.add_n([a, b, a])
print(a)
print(b)
print(res)
